package com.tgy.constant;

/**
 * @author tianguiyin
 * @version 1.0
 * @date 2022/6/20 21:53
 *
 * 存储到redis中的key
 */
public class RedisKey {
    // 账号密码错误次数
    public static final String LOGIN_WRONG_NUMBER = "login_wrong_number";
    // 用户信息缓存
    public static final String LOGIN_USER_INFO = "login_user_info";
    // 角色缓存
    public static final String LOGIN_USER_ROLE = "login_user_role";
    // 权限缓存
    public static final String LOGIN_USER_PERMISSION = "login_user_permission";
    // 菜单缓存
    public static final String LOGIN_USER_MENU = "login_user_menu";

    // 文章用户是否已经观看
    public static final String REDIS_ARTICLE_USER_WATCH = "article_user_watch";
    // 文章观看数量
    public static final String REDIS_ARTICLE_WATCH = "article_watch";


    // 友情链接
    public static final String FRIEND_LINK = "friend_link";
    // 作者信息
    public static final String AUTHOR_INFO = "author_info";

    // 限制访问IP名单（10分钟后过期）
    public static final String RESTRICT_VISITS_IP = "restrict_visits_ip";

    // IP一分钟内访问的次数
    public static final String RESTRICT_VISITS_IP_NUMBER = "restrict_visits_ip_number";

    // git提交记录
    public static final String GIT_COMMIT_HISTORY = "git_commit_history";

    // 评论和文件上传下载接口验证
    public static final String COMMENT_FILE_VISITS = "comment_file_visits";

    // 评论和文件上传下载接口访问次数
    public static final String COMMENT_FILE_NUMBER = "comment_file_number";
}
